//
//  BHChosePlaceInfoCell.swift
//  BigHealth
//
//  Created by 蔺百好 on 2021/6/25.
//

import UIKit

class BHChosePlaceInfoCell: UITableViewCell {

    @IBOutlet weak var iconImageview: UIImageView!
    
    @IBOutlet weak var name_label: UILabel!
    
    @IBOutlet weak var area_labe: UILabel!
    
    @IBOutlet weak var distance_label: UILabel!
    
    var model: BHFunPublishRelateModel! {
        didSet {
            self.iconImageview.sd_setImage(with: URL.init(string: model.relationPic), completed: nil)
            self.name_label.text = model.relationName
            self.area_labe.text = "\(model.cityName)/\(model.areaName)"
            
            self.distance_label.isHidden = !BHLocationManager.shared.authed
            self.distance_label.text  = model.distance+"m"
        }
    }
    
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
